package com.yxlgateway.utils;

import lombok.extern.slf4j.Slf4j;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: yxl
 * @since: 2022-01-08
 **/
@Slf4j
public class OrderNoUtil {
    public static String getOrderCode(Integer demandId){
        DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        return dateFormat.format(new Date()) + demandId;
    }
}
